package com.example.security.bean;


import java.io.Serializable;

public class SysRole implements Serializable {

    private static final long serialVersionUID = 1922040439888419530L;
    /**
     *  编号
     */
    private Integer id;
    /**
     * 角色标识程序中判断使用,如"admin",这个是唯一的:
     */
    private String role;
    /**
     * 角色描述,UI界面显示使用
      */
    private String description;
    /**
     * 是否可用,如果不可用将不会添加给用户
     */
    private Boolean state = Boolean.FALSE;


    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "SysRole{" +
                "id=" + id +
                ", role='" + role + '\'' +
                ", description='" + description + '\'' +
                ", state=" + state +
                '}';
    }
}